import unittest

from testCase1 import TestDemo1
from testCase2 import TestDemo2

suite = unittest.TestSuite()

suite.addTest(TestDemo1('test_case1'))
suite.addTest(TestDemo1('test_case2'))
suite.addTest(TestDemo2('test_case1'))
suite.addTest(TestDemo2('test_case2'))
# makeSuite在3.13版本会被淘汰
# suite.addTest(unittest.makeSuite(TestDemo1))
# suite.addTest(unittest.makeSuite(TestDemo2))

runner = unittest.TextTestRunner()

runner.run(suite)
